package com.linkin.homepage.bean;

import java.util.List;

public class BaseListBean<T> {
    public int currentPage;
    public int pageCount;      // 总页数
    public int pageNum;        // 总页数
    public int totalIndex;     // 总页数
    public int pageSize;       // 每页个数
    public int recordCount;    // 总个数
    public List<T> inforList;

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getTotalIndex() {
        return totalIndex;
    }

    public void setTotalIndex(int totalIndex) {
        this.totalIndex = totalIndex;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getRecordCount() {
        return recordCount;
    }

    public void setRecordCount(int recordCount) {
        this.recordCount = recordCount;
    }

    public List<T> getInforList() {
        return inforList;
    }

    public void setInforList(List<T> inforList) {
        this.inforList = inforList;
    }

    public boolean isEmpty() {
        return inforList == null || inforList.isEmpty();
    }

    public boolean isNotEmpty() {
        return inforList != null && !inforList.isEmpty();
    }
}
